package com.cskaoyan.order.feign;

import com.cskaoyan.mall.commons.result.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author：HeXiangZhi
 * @data: 2022/12/3 16:52
 * @Description: TODO
 */
@FeignClient("duolai-shopping")
public interface ShoppingFeign {

    @DeleteMapping("/shopping/items/{uid}")
    ResponseData deleteCheckedItems(@PathVariable("uid") Long userId);

    @GetMapping("/shopping/info/item/{productId}")
    ResponseData itemInfo(@PathVariable("productId") Long productId);

    @DeleteMapping("/shopping/carts/{uid}/{pid}")
    ResponseData deleteItem(@PathVariable("uid") Long userId, @PathVariable("pid") Long productId);

}
